/**
 * 维护公共布局左侧菜单数据
 * menuList数据:1.静态路由 2.根据权限点过滤的路由(动态)
 */
// 导入静态路由数据
import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state: {
    menuList: []
  },

  mutations: {
    // 存储数据
    setMenuList (state, filterAsyncRoutes) {
      state.menuList = [...constantRoutes, ...filterAsyncRoutes]
      console.log('权限点', state.menuList)
    }
  }

}
